<?php

namespace controllers;

use libs\registry as Registry;

class layout_controller extends \libs\controller{
    
    private $_tabela = "strony";
    private $_newsid = 3;
    
    
    public function layout() 
    {
        $db = Registry::get("database");
        
        $news = $db->get_where($this->_tabela,array('id'=>$this->_newsid));
        
        return array('news'=>$news[0]);
    }
    
}

?>
